#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    this->setStyleSheet("background : #f0f0f0;");
    ui->plainTextEdit->setStyleSheet("background : #ffffff;");
    ui->plainTextEdit->setStyleSheet("color : #000000;");
    ui->pushButton->setStyleSheet("color : rgb(0,0,0);");
    ui->pushButton_2->setStyleSheet("color : rgb(0,0,0);");
}

void Widget::on_pushButton_2_clicked()
{
    this->setStyleSheet("background : #000000;");
    ui->plainTextEdit->setStyleSheet("background : #000000;");
    ui->plainTextEdit->setStyleSheet("color : #ffffff;");
    ui->pushButton->setStyleSheet("color : #ffffff;");
    ui->pushButton_2->setStyleSheet("color : #ffffff;");
}
